List of functions in cod.inc

Function Description
cod_check_account
Checks if player is logged in his account.
cod_get_user_vip
Checks if player is a VIP.
cod_get_user_honor
Returns player honor amount.
cod_set_user_honor
Checks how much honor player has.
cod_add_user_honor
Adds value to player honor amount.
cod_get_user_clan
Returns player clan index.
cod_get_user_clan_bonus
Returns player clan percentage exp bonus.
cod_get_clan_name
Retrieves the name of a clan with given index.
cod_get_user_mission
Returns player current mission index.
cod_get_user_mission_progress
Returns player mission progress.
cod_get_user_mission_need
Returns player objectives count to mission end.
cod_spawn_icon
Spawns icon with specified type.
cod_get_user_time
Returns player gametime in seconds.
cod_get_user_time_text
Returns player gametime as text with hours, minutes, seconds.
cod_get_user_exp
Returns player exp.
cod_set_user_exp
Sets player gained exp.
cod_get_user_bonus_exp
Returns exp multiplied by player exp gain bonus.
cod_get_level_exp
Returns exp needed for specified level.
cod_get_user_level
Returns player level.
cod_get_user_highest_level
Returns player highest level of all classes.
cod_get_user_class
Returns player class and its promotion.
cod_get_user_class_name
Returns player current class name.
cod_get_user_promotion
Returns player class promotion.
cod_set_user_class
Sets player class.
cod_get_class_id
Returns class index by correspoding class name.
cod_get_class_name
Returns class name.
cod_get_class_desc
Returns class description.
cod_get_class_health
Returns player class health.
cod_get_class_intelligence
Returns player class intelligence.
cod_get_class_stamina
Returns player class intelligence.
cod_get_class_strength
Returns player class strength.
cod_get_class_condition
Returns player class condition.
cod_get_classes_num
Returns classes count.
cod_get_user_item
Returns player item and its value.
cod_get_user_item_value
Returns player item value.
cod_get_user_item_name
Returns player item name.
cod_set_user_item
Sets player item with value.
cod_upgrade_user_item
Upgrades player item.
cod_get_item_id
Returns item index by correspoding item name.
cod_get_item_name
Returns item name.
cod_get_item_desc
Returns item description.
cod_get_items_num
Returns items count.
cod_get_item_durability
Returns player item durability.
cod_set_item_durability
Sets player item durability amount.
cod_max_item_durability
Returns maximum item durability.
cod_get_user_max_health
Returns player maximum health points.
cod_set_user_health
Sets player health points.
cod_add_user_health
Adds value to player health points.
cod_get_user_health
Returns player health points.
cod_get_user_intelligence
Returns player intelligence points.
cod_get_user_stamina
Returns player stamina points.
cod_get_user_strength
Returns player strength points.
cod_get_user_condition
Returns player condition points.
cod_get_user_bonus_health
Returns player bonus health points.
cod_get_user_bonus_intelligence
Returns player bonus intelligence points.
cod_get_user_bonus_stamina
Returns player bonus stamina points.
cod_get_user_bonus_strength
Returns player bonus strength points.
cod_get_user_bonus_condition
Returns player bonus condition points.
cod_set_user_bonus_health
Sets player bonus health points.
cod_set_user_bonus_intelligence
Sets player bonus intelligence points.
cod_set_user_bonus_stamina
Sets player bonus stamina points.
cod_set_user_bonus_strength
Sets player bonus strength points.
cod_set_user_bonus_condition
Sets player bonus condition points.
cod_add_user_bonus_health
Adds value to player bonus health points.
cod_add_user_bonus_intelligence
Adds value to player bonus intelligence points.
cod_add_user_bonus_stamina
Adds value to player bonus stamina points.
cod_add_user_bonus_strength
Adds value to player bonus strength points.
cod_add_user_bonus_condition
Adds value to player bonus condition points.
cod_get_user_rockets
Returns player available rockets.
cod_get_user_mines
Returns player available mines.
cod_get_user_medkits
Returns player available medkits.
cod_get_user_poisons
Returns player available poisons.
cod_get_user_dynamites
Returns player available dynamites.
cod_get_user_thunders
Returns player available medkits.
cod_get_user_teleports
Returns player available teleports.
cod_get_user_multijumps
Returns player available multijumps.
cod_get_user_gravity
Returns player gravity amount.
cod_get_user_speed
Returns player speed amount.
cod_get_user_armor
Returns player armor amount.
cod_set_user_rockets
Sets player rockets bonus.
cod_set_user_mines
Sets player mines bonus.
cod_set_user_medkits
Sets player medkits bonus.
cod_set_user_poisons
Sets player poisons bonus.
cod_set_user_dynamites
Sets player dynamites bonus.
cod_set_user_thunders
Sets player thunders bonus.
cod_set_user_teleports
Sets player teleports bonus.
cod_set_user_multijumps
Sets player multijumps bonus.
cod_set_user_gravity
Sets player gravity bonus.
cod_set_user_speed
Sets player speed bonus.
cod_set_user_armor
Sets player armor.
cod_add_user_rockets
Add value to player rockets bonus.
cod_add_user_mines
Add value to player mines bonus.
cod_add_user_medkits
Add value to player medkits bonus.
cod_add_user_poisons
Add value to player poisons bonus.
cod_add_user_dynamites
Add value to player dynamites bonus.
cod_add_user_thunders
Add value to player thunders bonus.
cod_add_user_teleports
Add value to player teleports bonus.
cod_add_user_multijumps
Add value to player multijumps bonus.
cod_add_user_gravity
Add value to player gravity bonus.
cod_add_user_speed
Add value to player speed bonus.
cod_add_user_armor
Add value to player armor.
cod_use_user_rocket
Forces player rocket use.
cod_use_user_mine
Forces player mine use.
cod_use_user_dynamite
Forces player dynamite use.
cod_use_user_thunder
Forces player thunder use.
cod_use_user_medkit
Forces player medkit use.
cod_use_user_poison
Forces player poison use.
cod_use_user_teleport
Forces player teleport use.
cod_get_user_resistance
Returns if player has resistance for skills.
cod_get_user_godmode
Returns if player has god mode.
cod_get_user_noclip
Returns if player has noclip.
cod_get_user_bunnyhop
Returns if player has bunnyhop.
cod_get_user_footsteps
Returns if player has silent walk.
cod_get_user_model
Returns if player has model of opponent team.
cod_get_user_unlimited_ammo
Returns if player has unlimited ammo.
cod_get_user_recoil_eliminator
Returns if player has recoil eliminator.
cod_get_user_recoil_reducer
Returns if player has recoil reducer.
cod_set_user_bunnyhop
Sets player bunny hop bonus value.
cod_set_user_footsteps
Sets player silent walk bonus value.
cod_set_user_model
Sets player model of opponent bonus value.
cod_set_user_resistance
Sets player resistance for skills bonus value.
cod_set_user_godmode
Sets player god mode bonus value.
cod_set_user_noclip
Sets player noclip bonus value.
cod_set_user_unlimited_ammo
Sets player unlimited ammo bonus value.
cod_set_user_recoil_eliminator
Sets player recoil eliminator bonus value.
cod_set_user_recoil_reducer
Sets player recoil reducer bonus value.
cod_give_weapon
Gives player a weapon and allows player to own and pick it.
cod_take_weapon
Removes a weapon from player inventory and disallows to own or pick it.
cod_get_user_weapon
Returns player current weapon.
cod_get_user_render
Returns players render amount.
cod_set_user_render
Sets players render amount bonus.
cod_set_user_glow
Sets players render glow amount.
cod_print_chat
Sends colored chat message with [CoD] prefix to players.
cod_log_error
Logs error to cod_mod.log file.
cod_cmd_execute
Executes command on player with bypassing protectors (at least some of them).
cod_sql_string
Prepare safe SQL string for query.
cod_show_hud
Diplays text in HUD / DHUD to players.
cod_display_fade
Displays screen fade.
cod_display_icon
Displays status icon.
cod_make_bartimer
Displays bar timer.
cod_screen_shake
Shakes player screen.
cod_refill_ammo
Refills player clip ammo.
cod_make_explosion
Makes an explosion effect around entity.
cod_repeat_damage
Makes repeating damage to player.
cod_inflict_damage
Makes damage as player to other player.
cod_kill_player
Kills a player imitating kill by another player.
cod_respawn_player
Respawns player after defined time.
cod_teleport_to_spawn
Teleports player to spawn.
cod_random_upgrade
Makes random item upgrade.
cod_percent_chance
Returns random bool with specified percentage chance for success (true).
cod_is_enough_space
Returns if there is enough space for entity in current origin.
cod_remove_ents
Removes all entities with specified class name.
cod_get_user_flags
Returns player access flags.
cod_set_user_flags
Sets player access flags.
cod_register_item
Registers new item.
cod_register_class
Registers new class.
cod_register_promotion
Registers new class promotion.
cod_flags_changed
Multiforward called on players access flags change.
cod_class_changed
Multiforward called when player class has changed.
cod_item_changed
Multiforward called when player item has changed.
cod_render_changed
Multiforward called when player item has changed.
cod_gravity_changed
Multiforward called when player gravity has changed.
cod_speed_changed
Multiforward called when player speed has changed.
cod_damage_pre
Multiforward called before player receives damage.
cod_damage_post
Multiforward called after player receives damage.
cod_damage_inflict
Multiforward called before cod_inflict_damage (custom HamTakeDamage) is executed.
cod_weapon_deploy
Multiforward called when player weapon has been deployed.
cod_cur_weapon
Multiforward called when cur weapon event has been executed.
cod_team_assign
Multiforward called on player team assignment.
cod_killed
Multiforward called on player death.
cod_spawned
Multiforward called on player spawn.
cod_cmd_start
Multiforward called on player spawn.
cod_bomb_planting
Multiforward called on bomb planting event.
cod_bomb_planted
Multiforward called on bomb planted event.
cod_bomb_defusing
Multiforward called on bomb defusing event.
cod_bomb_defused
Multiforward called on bomb defused event.
cod_bomb_explode
Multiforward called on bomb explode event.
cod_bomb_dropped
Multiforward called on bomb drop event.
cod_bomb_picked
Multiforward called on bomb pick event.
cod_hostage_killed
Multiforward called on hostage kill event.
cod_hostage_rescued
Multiforward called on hostage rescue event.
cod_hostages_rescued
Multiforward called when all hostages have been rescued.
cod_new_round
Multiforward called on new round event.
cod_start_round
Multiforward called on round start event.
cod_restart_round
Multiforward called on round restart event.
cod_end_round
Multiforward called on round end event.
cod_win_round
Multiforward called on round win event.
cod_end_map
Multiforward called on map end (message intermission) event.
cod_reset_data
Multiforward called on data reset.
cod_reset_stats_data
Multiforward called on stats data reset.
cod_reset_all_data
Multiforward called on full data reset.
cod_medkit_heal
Multiforward called on medkit heal.
cod_poison_infect
Multiforward called on poison damage.
cod_rocket_explode
Multiforward called on rocket damage.
cod_mine_explode
Multiforward called on mine damage.
cod_dynamite_explode
Multiforward called on dynamite damage.
cod_thunder_reach
Multiforward called on thunder damage.
cod_teleport_used
Multiforward called on teleport use.
cod_item_enabled
Player item forward called on item give.
cod_item_disabled
Player item forward called on item drop.
cod_item_spawned
Player item forward called on spawn event.
cod_item_kill
Player item forward called on kill event.
cod_item_killed
Player item forward called on death event.
cod_item_skill_used
Player item forward called on item skill use.
cod_item_upgrade
Player item forward called on item upgrade.
cod_item_value
Player item forward used for getting value of item.
cod_item_damage_attacker
Player item called before player deals damage.
cod_item_damage_victim
Player item called before player receives damage.
cod_class_enabled
Player class forward called on class enable.
cod_class_disabled
Player class forward called on class disable.
cod_class_spawned
Player class forward called on spawn event.
cod_class_kill
Player class forward called on kill event.
cod_class_killed
Player class forward called on death event.
cod_class_skill_used
Player class forward called on class skill use.
cod_class_damage_attacker
Player class called before player take damage.
cod_class_damage_victim
Player class called before player receives damage.